package com.zhijian.medical.entity.po;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 仪器配件
 *
 * @author Auto Generator
 * @date 2022-01-01 15:37:54
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Api(tags = "仪器配件")
public class DeviceAccessory {
    /**
     * id
     */
    @ApiModelProperty(value = "id", hidden = true)
    private Long id;

    /**
     * 名称
     */
    @ApiModelProperty("名称")
    @NotBlank(message = "名称不能为空")
    private String name;

    /**
     * 规格型号
     */
    @ApiModelProperty("规格型号")
    private String specificationsModels;

    /**
     * 单位
     */
    @ApiModelProperty("单位")
    private String unit;

    /**
     * 数量
     */
    @ApiModelProperty("数量")
    private Integer quantity;

    /**
     * 用途
     */
    @ApiModelProperty("用途")
    private String use;

    /**
     * 位置
     */
    @ApiModelProperty("位置")
    private String location;

    /**
     * 备注
     */
    @ApiModelProperty("备注")
    private String note;

    /**
     * 文件路径
     */
    @ApiModelProperty("文件路径")
    private String filePath;

    /**
     * 设备id
     */
    @ApiModelProperty("设备id")
    @NotNull(message = "设备id不能为空")
    private Long deviceId;

    /**
     * create_time
     */
    @ApiModelProperty(value = "create_time", hidden = true)
    private Date createTime;

    /**
     * update_time
     */
    @ApiModelProperty(value = "update_time", hidden = true)
    private Date updateTime;
}